<template>
  <div>
    <van-nav-bar title="地图找房" left-arrow @click-left="$router.go(-1)" />
    <div id="allmap"></div>
  </div>
</template>

<script>
export default {
  mounted() {
    this.getMap();
  },
  methods: {
    getMap() {
      var map = new BMap.Map("allmap");
      map.centerAndZoom(new BMap.Point(116.3964, 39.9093), 11);
    },
  },
};
</script>

<style lang="less" scoped>
:deep(.van-nav-bar) {
  background-color: #21b97a;
  .van-icon {
    color: #fff;
  }
  .van-nav-bar__title {
    color: #fff;
  }
}
#allmap {
  width: 100vw;
  height: 100vh;
}
</style>
